package com.yami.shop.user.common.service;

import com.yami.shop.bean.param.CustomerManagerParam;
import com.yami.shop.bean.param.UserExcelParam;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @author: zsm
 * @date: 2023/1/15 9:05
 */
public interface UserMemberService {
    /**
     * 客户列表 - excel导出
     * @param customerParam
     * @param response
     */
    void exportCustomer(CustomerManagerParam customerParam, HttpServletResponse response);


    /**
     * 下载客户导入模板
     * @param  templateType
     * @param response
     */
    void downloadTemplate(Integer templateType, HttpServletResponse response);

    /**
     * 导入客户
     * @param shopId
     * @param excelFile
     * @return
     * @throws IOException
     */
    UserExcelParam importCustomer(Long shopId, MultipartFile excelFile) throws IOException;
}
